-
Notifications
You must be signed in to change notification settings - Fork 26
Display saga messages body using CodeEditor #2402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks pretty good.
I am a bit unsure about us creating yet another CodeEditor though!
<div class="editor-container"> | ||
<!-- Maximize Button (shown on hover) --> | ||
<button v-if="showMaximizeButton" @click="toggleMaximizeModal" class="maximize-button" title="Maximize view"> | ||
<img :src="DiffMaximizeIcon" alt="Maximize" width="14" height="14" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it would be better to use the svg directly not via a img tag
import DiffMaximizeIcon from "@/assets/diff-maximize.svg"; | ||
import DiffCloseIcon from "@/assets/diff-close.svg"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should try to use fontawesome icons if available
src/Frontend/src/components/messages2/SagaDiagram/SagaUpdateNode.vue
Outdated
Show resolved
Hide resolved
export interface SagaMessageData { | ||
message_id: string; | ||
data: SagaMessageDataItem[]; | ||
body: DataContainer<{ value?: string; content_type?: string }>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why content_type instead of contentType? It seems like this is not an API response object
}; | ||
|
||
result.body.loading = true; | ||
result.body.failed_to_load = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why failed_to_load and not_found rather than failedToLoad and notFound?
Inspired by the one in MessageStore. Potential removal of duplication a
Co-authored-by: John Simons <[email protected]>
…de.vue Co-authored-by: Phil Bastian <[email protected]>
TODO:
Potential improvements: